add tree sibling creation algorithm