path 0 0 1 0 1 1 1 0 2 0 2 1 3 1 3 2 4 2 4 3 3 3 4 3 4 4 5 4