Add int -> Trits conversion.

A Trits can now be instantiated with an integer.  I'm not totally
convinced that my algorithm for doing so is elegant, but it is correct.