Rotating a flattened square matrix | Hacker News Reader