use bsearch for searching language codes