Fixed HEAD, made tree_compare static