adding a less shitty implementation of spiral order matrix