Wrapper for gsll inspired by hmatrix from haskell