Added the evaluation of mecdf at the sampling points. Needs further pondering on how to calculate the KS statistics.