NgramPerPage
Added Map to parse ngrams
Add NgramPerPage for compiling