Fix SearchAlgorithm interface