Initial implementation of a max-heap