Inverse Matrix implementation

For Coursera “R programming” lab.