Added some comments for clarity
Merge branch 'master' of github.com:valentinp/aer1513project
New calcResidual function to compute stacked residuals for feature j