multiply matrix without mpi