Heap recoded