this aryan invasion theory derived from an observation made in the early nineteenth century in the field of linguistics that sanskrit , the ancient language in which the vedas are written , has extremely close affiliations with latin and greek .