Stack Using Queues in Ruby