Added priority-map-keyfn.

Added a new priority-map constructor which takes a keyfn to extract the
true priority from a map's values for sorting purposes.  The constructor
can also optionally take a comparator.