Update old multiclassification code corresponding blockwise approach