Neural network algorithm. Neural network algorithm