sketch of an n-gram map/reduce