res_gamma function

Gamma Residuals