During the Sangam period Tamil literateure flourished from the 3rd century BCE to the 4th century CE. How many Tamil dynasties ruled during the Sangam period