I am working with nested vectors of different depths and need to perform a number of element wise operations. As an example, I wrote the following functions for adding vecto