How evolutionary adaptation explains language structures