point may contain many paths
calculate distance between two points
saving start and end points for paths