Added parallelization and random forest training.