added C source file for mahalanobis calc