Max heap implementation in Ruby.