Distributed Grep written in Java