Completed finding Exponent by squaring