Return pair for front() and dequeue to get rid of output param. Update demo accordingly