Bug fix and add index property for each terminal node
Bug fix and new class ConfusionMatrix for training