Implement a vanilla PyTorch RNN cell that combines current inputs and previous hidden states with a tanh update.