modify hashstack. created typedef *hsnode hsnode to make it less confusing