Use sparse matrices for efficiency in LDA datatypes