Submit Prog. Assign. 2, Correct a type in cachematrix.R