Trinary Tree