Mathematical Model For Cnn