local mapreduce and wordcount example for lecture 3