Greatest Common Measure of Three Commensurable Magnitudes