Language Detector using tri-gram model.