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.
You probably won't like this function in the base StateSampler, but I could not see another way to do that.