Update cachematrix

final assignment 2