Added print function

Added a function to print nodes from the hash table.