change Orders into a Map of Queues