Queue implementation

Queue implementation