Cumulative innovation, open source, and distance to frontier