if potential partial solution
if(feasible(row,col,r,d1,d2,n))