Completed assigment 2

Completed both the functions related to calculating & caching the
inverse of a matrix