update time complexity for rnn