back at using my own binary search implementation