Added limited-depth search algorithm.