Add program to compute residuals of feature selection.
Fix bug.