Priority queue program for DSA 2 class