Stack Implementation Using Dictionary Update