Added search method (recursive and iterative)