Added search method

Added a method to search for the indexes of all matching objects.
Merge pull request #1 from michaelPotter/michael

Added search method