Changed cachematrix.R stub functions to contain the code for my solution.