(1) update c_impl (2) add tree relation in hist
Update for latest proj