Imputation algorithm using copulas