Pātuhitia tēnei: Optimization techniques with Fortran