using create_matrix for n-gram tokenization

using create_matrix for n-gram tokenization to improve performance over RWeka memory bug