shortest path algo, and zig zag problem