Making dictionary do a binary search