Modif in TreeClass and matlab scripts
Correcting error in TreeClass
introducing cost change and batch mode