A simple queue library implementation