NONPARAMETRIC DENSITY ESTIMATION BY B-SPLINE DUALITY