Update wpc26.pl

bug in distance calculation
Merge pull request #1 from pijoter/patch-1

Update wpc26.pl