added parallel functionally to compute several n gram models