PERCENTILE_DIST

The phoenix.csv is showing additional changes.  I will check that it does not happen again.
This also involves a bug fix related to Count_Distinct.  The count should be preincremented else the totalcount will not be correct.
Related testcases added and testcase correction done.