why complexity of build max heap() converged from o(n log n) to o(n)?