Nonparametric Density Estimation : A Piecewise Maximum Likelihood Approach