c++ grading script for priority queues