Fast Training of Three-Layered Neural Network Classifiers by Solving Inequalities