Update sq_root.rb

I was just looking over this algorithm and it looks like there is a minor error in the case where 0 < x < 1.  Perhaps I'm mistaken, I am new both to Git-Hub, and I have not dealt with Ruby.  An example of my unfamiliarity of Ruby: I assume .to_f is a case change to the data type of float, but I am not sure.