Add CDF computation routine