Republics in ancient india