Pātuhitia tēnei: Algorithms and data structures