add basic implementation of _heap_