Use a binary search to look up functions