Modeling a Neural Network Using Perceptrons