A Learning Method for Block-Based Neural Networks with Structure Search Based on the Least Number of Routes