minor performance changes
+minor fixes +simple ngram generator app
added mapreduce  python scripts (also executable locally) for counting ngrams