This function computes the residue of a matrix as defined
by Yang et al (see references).
References
J. Yang, H. Wang, W. Wang, and P.S. Yu. An improved
biclustering method for analyzing gene expression. International
Journal on Artificial Intelligence Tools, 14(5):771-789, 2005