fix stack implement

according to Exercise 2.12, the stack data type should be *precedual representation*