gCD function

Generalized Cook's Distance