Categorial grammar parser using a modified CYK algorithm