Added searching algorithms and tests.