Updated cachematrix.R and included test code