matrix multiplication code added