General finding residuals program. Untested>