Utility sparse matrix functions for Quantitative Language Comparison (QLC)