A #include<assert.h> was missing here
No need for the size() function in Heap