Allow restricting tree depth and size in random forests.

This is only a minor modification of Luca's pull request #123
to make it merge with current VIGRA master.