Basic max heap built in ruby