Who ruled the territory of modern Germany in the 900's