Added Predictor and ouput tree implementation