Add build heap method