Create longestZigZag