From Articles to Code: On-Demand Generation of Core Algorithms from Scientific Publications