Normalized maximum likelihood methods for clustering and density estimation