Week 2 homework, yeah

Caching matrix object for week two homework