added vector add sub code