vector operation on different element number