Heap written in PHP
Heap implemented by template