Vocabulary Creation

this part is responsible for creating the vocab to be used for training the classifier 
so you dont want me to allocate the matrix at the beginning and keep pushing back instead of pushing into the right indices?