Science and society in ancient India