Detecting text language with c++