By what age had many small states covered the subcontinent?