Working memory structure! Passing function as arma vector pointer which is applied on the pointer to another vector