Added LDCRF training and testing.