Add function for calculating KS statistic between two distributions.