Renamed abstract class + BFS algo