A Matrix package for R