Subgrouping Reduces Complexity and Speeds Up Learning in Recurrent Networks