Finished the searching method.

TODO: Add the deleting/cutting part.