Reconstructing the evolution of Indo-European grammar