test trinary Tree