Switch to queue pattern from std lib.
Merge pull request #42 from rhattersley/queue

Switch to queue pattern from std lib.