Caching function for matrix and inverse

Coursera R Programming - Programming Assignment 2