Pātuhitia tēnei: An introduction to the analysis of algorithms