A dimensional reduction method for ordinal three-way contingency table