Implement POS n-grams

Closes #20
assertSparseDictEqual: Performance improvement