First version of the Sqrt problem. Binary search based solution.