Function magnitude

Calculates the magnitude of a Vector.