A minheap written for ranking in Game Server by erlang