recursion.rb: fix bsearch