do data parsing part for closest_pair challenge