Updated heap lib, codecheff Reverse answer accepted