BFS implementation takes too much time for CSES labyrinth problem I am trying to solve CSES Labyrinth problem: