fix the bug of constructor CHeap(..., T* data), when data is NULL