fixed issue with hashtable iterator not following hnode links, also fixed valgrind memory leak errors in bfs search. bfs search also made more generic