Stack implementation using resizing-array.