Added functions to cache and solve inverse of a matrix

This is an attempt at the Week 3 programming assignment for "R Programming" on Coursera