Change data type of msg queue from deque to list