complete basic binary heap functions and tested