Modularity and Innovation in Complex Systems