improve memory efficiency of CKYTable