I am trying to implement HPA algorithm for finding the shortest path between two point. I came across thisthe paper https://webdocs.cs.ualberta.ca/~mmueller/ps/hpastar.pdfNear Optimal Path Finding Algorithm (by Botea, Müller & Schaeffer) but iI am stuck at the clustering part. I have a 2 dimensional array and each index in the array is a node. Could anyone help me clustering my 2 dimensional array into clusters.?