Add Distance function and tests. Fix behavior of Norm for zero-length sl...

...ice.