version_1.3: Tree alogrithm inproved