Find closest points implemented in Qt. Divide and conquer