updated cachematrix.R
Merge https://github.com/bhewitt/ProgrammingAssignment2