trinary

Add trinary exercise