trinary is ternary