The works of which two scholars were used to teach Sanskrit to the higher castes of India