Backtrack algorithm for find all disjoint hamiltonian cycles.