Added searching capabilities

Added search and createIndex methods to queue