fix dll counting bug, shift() call, add Queue class and tests
Merge pull request #2 from CharlesGust/queue

fix dll counting bug, shift() call, add Queue class and tests