add neural network algorithm