crappy binary search