Growth of complexity in molecular evolution