Commit completed and tested cachematrix.R