add stack
add a test of stack implementation