https://123dok.net/document/q06636xq-optimal-algorithm-generate-extendable-avoiding-walks-arbitrary-dimension.html