Max priority queue in Ruby