Polynomial Softmax Functions for Pattern Classification