Changes to the TrinaryNode implementation