Added function to create matrix
Added function to calculate inverse
Added comment to make inverse more clear