implemented regression tree

todo: test