heap data structure
modification to test various utility functions
solution without DP