Find shortest path and distance between two cells in matrix using breadth first search (BFS). Download code in Java, JavaScript and Python.