CForest new version

Do not focus on the documentation, I am leaving it for the end since there are a lot of changes and probably more to come.
This function returns the sample in reverse order. Just do something like this (no function needed):
```
space_->copyState(state, statesToSample_.front());
statesToSample_.pop_front();
```