implemented NewtonsSqrt with comments and scaladocs