1. A method for assigning coordinates to a centroid in an array, the method comprising: (a) providing an array; (b) selecting a starting centroid within the array by using a local lattice structure and determining a quality of fitness for each centroid; (c) assigning coordinates to the starting centroid; and (d) diffusing outward to determine and assign coordinates to a neighboring centroid using the lattice structure.