Add the possibility to get 2D vector lenght
Refactoring.