On an Efficient Design Algorithm for Modular Neural Networks