Added N-Gram calculation.  Needs more testing