CreateCandidates(int dimension, List A) { if(dimension == 1) return A; List B, C; int i=0,j=0,k=0,currentDim=1; for(i=0;i