How to determine the compatibility of undirected character state trees