Efficient Algorithms for Large-Scale Asteroid Discovery