Babylonian method for square root