BFS

solved bugs; added pathTo(v), which finds shortest path between v and
source (v=0)