Averaging/modular techniques for neural networks