Multiplication of Matrices and Philosophers dinner