fix binary search http://googleresearch.blogspot.de/2006/06/extra-extra-...

Fixes calculating the binary search pivot index calculation for large values, c.f. [Extra, Extra - Read All About It: Nearly All Binary Searches and Mergesorts are Broken](http://googleresearch.blogspot.de/2006/06/extra-extra-read-all-about-it-nearly.html)