My cachematrix solution

replacing the cachematrix.R file with my own function