wrote makeCacheMatrix and cacheSolve methods for ProgrammingAssignment2