add two numbers in linked list and spiral matrix order