added vector norm (sort of)