MODIFY Stack, Queue

I changed some code.
issue1 = I used a template.
issue2 = I removed define and used const.
...