fixed matrix multiplication
fixed, though not optimized, matrix constructor