Added file output and comparison functor for priority queue sorting algorithm