Update square-root-midpoint.rb