initial part of mapreduce.jl