Add mem handle access to dense matrix and vector
Clean-up