Added functions code and comments to cachesolve.R
Merge https://github.com/soalla/ProgrammingAssignment2