bad ass binary search (groovy, socrates)