Create n-ary trees

n-ary trees representation and finding elements in them