update cscan to include wraparound distance; update output.txt