A function that calculates the square root of x given eps