Probability Density Estimation through Nonparametric Adaptive Partitioning and Stitching