Fixed the multiplying of blength*blength so that it can't overflow