Matrix multiplication written to be merged