matrix multiplication ready to be parallelized