Added a getTree method.
GLM now takes trees and fills in the data.