C++ Solution to Leetcode 59. Spiral Matrix II