Added Ruby iterative binary search. Fixed incorrect fencepost in Perl versions