toy search engine, able to run on large dataset