add stack by array and list