Implemented regression tree