A data-flow linear array implementing neural network architectures