Compact tree of Thomas CAM