Assignment2 developed

A pair of functions that creates a special type of matrix, calculate
its inverse and caches it to reuse it.