implement the two methods that will use solve function in R to create inverse of matrix
used proper variable names instead of x and y
also fixed the bug in the setinverse finction.
added example of how to run this.