hamiltondistance done