add predict function
fix a bug of parent reordering in predicting
dedicated training procedure
dedicated testing/predicting application