Added two functions in cacheMatrix.R for RprogrammingAssignment2