not sure if it will be possible to use a deque as the stack as cpu needs
random access to stack pointer and memory