Multiscale Bernstein Polynomials for Densities