A Parallel Processor for Neural Networks