refactor add newTTLKeyHeap function