Added code to solve and store an inverse Matrix