A simple queue implementation