Simplified the binary search comparison
Tweaked the binary search to accept arbitrary indexed collections