A star search exercise, using an array of nodes as a graph