RNN(recurrent neural network) and algorithms