Creating tree and searching in tree items