Update wpc26.pl

bug in distance calculation