compute_closest_wgps function

Find the closest data in subset to the original data