Elements of Queuing Theory With Applications