This is implementation using Stacks. Going to use Queues next.