Naive search engine implementation in Java for experimenting with concurrency