http://programmingpraxis.com/2009/03/23/binary-search/