implemented kde, probably could be optimized
implemented plugin estimator, fixed some matrix/list stuff with density sampling. Still a bit buggy