this is the recursion formula for problem :
C(i,S) = min { d(i,j) + C(j,S-{j}) }
In fact, when I tried to implement it as a code, the following co