Added and implemented dumpValues method to queue class.