Calculate the squar root of a given number