added shortest path example using BFS\n refactored some stuff