add mapreduce algorithm to insert documents in parallel over contexts as well as words per context