Hopefully create the _buildHeap function