corrected antecedent function
corrected antecedent function
corrected some tree functions
corrected _find_head_of_tree
corrected  _find_head_of_tree
corrected _find_head_of_tree
merged with julia