Added vector magnitude() function