Function "cachematrix" for assignment 2.
function cachematrix - Assignment 2.