Complete cachematrix file

Completed edit of cachematrix file for assignment 2.