This sounds like a homework assignment to me
Anyway: I don't think there's any easy way to create a square root function similar to the Math.square or Math.pow method. Basically I think this is completely stupid as the Math.square function allready does the job.
What exactly do you mean with "implement the square root function using binary search"?
Can you post what you have thus far?