added zigzag conversion solution