R programming assignment for Week 3. Inverse Matrix Cache