Creates the functions for inverting the matrix

As asked in the exercise, we need to create two functions that
calculates the inverse of the matrix by caching its data.

I took the example that he gave for the mean and replaced 'm' by 's' and
'mean' by 'solve'. I still need to add documentation.
Add documentation to library.