update cachematrix, initial update from original assignment