an attempt to simulate Clojure's map/pmap (map/parallel-map) behaviour in Java