Algorithms for Computing the Triplet and Quartet Distances for Binary and General Trees | Synapse