Sqrt(x) in Java