CompareQuartets function

Compare quartet states by explicit enumeration