Added reset method to algorithms

Added reset method allowing the search algorithms to reset themselves.
Updated search algorithm test to add method to test reset.