Find the shortest path in labyrinth