heap sink operation