Completed cachematrix.R
Merge https://github.com/coopersnail/ProgrammingAssignment2