Add refheap
Merge pull request #951 from dotemacs/refheap

Add refheap