Working imputation code, first iteration of MCMC with congruency classes