Revert "heap"

This reverts commit dc1fc3e81d08633b1b4cbac4b93255bcdec52109.