Move heap implementation.