DistancePair class for result
implement quick sort for result pair
Update quadratic distance
Change test dataset
Add test code; remove debug info