Added gpc cdf functions and unittests.
Fixed a bug in kernel_density, that made it very slow for large data sets