Mapping Arrays in parallel in Java