Feature/template vector

add vector template functions from t3d