test program for priority queues