Refactored kde methods to separate module for cleaner structure.
Wrote series of tests for kernel and KDE.
TODO: now in a position to write benchmark/profile script and attempt to export KDE code to C/CUDA