LinkedlistStack and Simulation