Create BFSSalgorithm