Multiresolution analysis, wavelets, and probability density estimation