compute_AD function

Anderson-Darling goodness of fit test statistic