implementation a small search engine