cumapply_byname function

Apply a function cumulatively to a list of matrices or numbers