Added matrix multiplication benchmarks. In the process, found and fixed a bug. Add a test for that bug.