Function for cummulative efficiency
Cummulative dist function updated