Made a small design change in SearchAlgorithm to allow multiple nodes to be expanded in a single iteration