Filling in the details. Generalized the dense matrix vector multiplication algorithm, at least partially, including unit tests.