Thanks an int input N and generates a 2d vector populating it from 1 to N^2 following a spiral