R Program for Inverting a Matrix