absolute in array

max  heap and  min heap