adds TreeCPD class #135