Represents a heap tree as an array and provides functions to access it.
The tree is represented by a reverse lexicographical order binary tree. 0 1 2 3 5 4 6 Path: 0 2 1 3