heap: Add initial heap functions

Intiailize a heap. Ensure that the list has heap property.
Add helper functions for above.

Signed-off-by: Prashant Malani <pmalani@nvidia.com>