finish the build-heap