Showing how binary search is carried out step by step. The binary search method is adopted from "http://rosettacode.org/wiki/Binary_search#Run_BASIC" (the Ruby section)