Queue class with overloaded constructors

http://ideone.com/NIMBli