Use stack to implement queue.
  or linked queue.