cachematrix

added solution code to the file