C++ divide and conquer method to solve the problem of post office location