converting dijsktra path output to a vector and adding tests
adding sorting