added dense matrix and vector module