Completion of cacheMatrix.R : ProgrammingAssignment2