implemented n-gram analysis from persistence to visualization.
added tests, closes #13 closes #28 closes #35