Closes #3 Adding ability to calculate cardinalities for the same word appearing multiple times in the same document.