Added Hamiltonian path and cycle functions.
Test and examples.