Assignment 2 completed, cachematrix updated with new code