Solved zigzag conversion problem.