Added code to the cachematrix.R file

Added code for calculating the matrix inverse and returning the same. If
is is already calculated, then the value is returned from cache.