Added vector length method