Implemented ntru_trits class