Implement matrix-vector multiplication
Add more matrix creation functions.

Also adds test for these, and for some existing matrix creation functions.