standart edge length functions added
edge length function now fully vectorized