Fix matrix multiplication order.
This fixes #26