implementation of generalized Robinson-Foulds metric for comparing trees