Class that stores the find path algorithm