createForestModel function

Create a forest model object