Finding square root of a number