InitTreeId() initialising the tree`s id