implement linear multi-class classification method using softmax function.