Adding n-dimensional density estimator.