Modular Invariance and the A—D—E Classification