Multiplication of matrix using Fork and  Pthreads