Optimized results to discard when sorting on load. Avoids holding large
result sets in memory and makes performance better for large data sets
Refactored search to just use 2 lists.  1 for distance, and
corresponding results.  Avoids copying results, and both keep entries in
the same index.