Calculates the square root.