How did elementary schools evolve into high schools?