recursive solution to Spiral Matrix