final cachematrix.R for peer review

Made some minor changes
Merge branch 'master' of https://github.com/mottervik/ProgrammingAssignment2