cross validation pruning added + changes in clone_tree method in TreeMachine

- cross validation pruning method added
- class refactored
- clone_tree method in TreeMachine changed

[reference for cross-validation pruning](https://onlinecourses.science.psu.edu/stat557/node/94)