Refactored compare methods to use Trit\Type instead of Int32\Type.