Basehangul C implementation