Changes to certain data structures

Previously used ArrayLists to store operands, using Queues instead