clean up new bayesian kde algor