first version of assignment

first version tested using R-studio. This should be extended to check if
the inversed matrix corresponds to the input matrix