Updated NodeStack implementation, edited Stack and ArrayStack