refactoring
affine gap as loss function
revise get reference action sequence
bug fix: DPStateMap and IParserRank::GetReference