add CForest planning framework

--HG--
branch : CForest
doc fixes, clean-up, use persistent scratch space for pruning to avoid mallocs

--HG--
branch : CForest
merging new CForest