min-heap implementation with random remove
use xheap and xlist for Timer.