heap working!

heap type is min heap