calculate norm of a vector - Search