returns the square root of an integer