Initial changes to cahcematrix.R