Applying matrix operations to data rowwise
Converting lists of vectors and matrices into a single data frame