add support for C++ stdlib heap operations

`<algorithm>` is a big header; I only the operations I needed for an application where `priority_queue` didn't hack it (because template default arguments on classes don't seem to work).