In principle 如果有了整體概念,投奔其他公司,alwasy can寫出 if you
have enough time(related to money). Some algorisms(implemented as codes, very optimized) make the excution much efficient, it probably takes while to figure out if from scratch. Like the commerical math library "numerical recipe", many people just use them to speed up fitting calculation instead of write themself.