Ngā hua rapu - "crystal structure algorithm"