Tomer and I are happy to have written this research paper about the heap. All of the source files presented here are referred to in the paper itself. We hope you'll learn something new from this paper.
There are some URLs in the paper. If you'd like to click them, you'd need to download the PDF.
EDIT: We have noticed that in pages 22, 23, 28, and 29, some lines of code/comments overflow the width of the page. Until we fix these errors, the reader must refer to the source code above.