Changed location_set.of_pairs() to work with different formats of x,y coordinate tables.