Fixed serious bugs in matrix multiplication affecting non-zero-indexed arrays