tg: automatic language detection by using two gram based heuristic

TODO

* update ctags.1,
* add tables for detecting .h of c++ and objc,
* handle patterns, and
* optimize the size of tg table