Implement a basic queue