implemented parts of the forest grow and predict APIs