solved file for cachematrix.R