Added a pool_end() command to random_forest() so threads are free when they are no longer needed.
Added averaged percentage computating to folded_train_and_test().