print a spiral matrix of configurable size