Implementation of Divide and conquer algorithm for finding closest point in 3D area