design and implementation of an automatic queue management system