added hamiltonian path solution attempt for cube