Basic implementation of a map-reduce framework