Mahalanobis distance Grasshopper

Hi All,
I was wondering if someone already implemented the mahalanobis distance in grasshopper?

Thanks,
Tom