SMS: Modeling the Pāṇinian System of Sanskrit Grammar