Norm cleanup.

Devectorize norm calculation and avoid code dublication. Remove negative infinity norm because it violates the triangle inequality.