Application showing fun heap sort in my ways