added distances and graph data structure outline