fixed validateSQRT method

fixed a mistake in the algorithm