first iteration of the KDE algorithm

I have made the first iteration for the KDE algorithm.

I also have accidentally added the each of the files twice.