Added TwoWayQueue class.