Sequential and parallel matrix multiplication