A simple search engine using map and reduce function