Added hash functions and helper function. Also cleaned up some unneeded code for this implementation