replaced find_if with binary_search to 5X speed up, still TLE...