Algorithm of a simple perceptron using the numerical derivative of the logistic function to solve the AND/OR gate