Code for Quartet Distance: Finds quartets, but uses too much memory for
2000-taxa trees.