Programming assignment 2

Programming assignment 2 to calculate inverse of a matrix and cache it.