Application of matrices in business