make the subtree of root a heap and update root

shift(data,root,last);

root--;