Extraction of TSP logic for polar coordinates
Implemented polar distance in tsp logic