Substitution Dirichlet process mixture model with data blocks