computation of square roots