build_dict, check_typo: changed approach to hashtable and linkedlists