added priority queue and patient classes