I need to find the shortest path between two nodes on an n-dimensional cube. I\'ve generated all the vertices, but the only way to find the path I can think of is brute forc