Recursive implementation of the Babylonian method for computing square roots