KDE Iteration 2 - Need Feedback

I have implemented the second iteration of the KDE algorithm. 

I'm still not sure about these items:
- getting the data that will be used into the SGMatrix points,
- letting the user choose the kernel.

All feedback is appreciated!