Write an algorithm that determines the square root of a number​