New version with new treebuilder and fowardbackward algorithm debugged!!!! :)