hash tables with recursion working