Generate CDF directly

Save one loop through the sizes array by generating the CDF directly, rather than creating a PDF first.