ProgrammingAssignment2 - cacheMatrix implemented