Comparison of feedforward neural networks and RNNs