Fixes for kde

This fixes #29
* Switches to using `rfft` and `irfft`, which removes some redundant operations.
* Fixes the interlacing and integration problems.