Modified cachematrix.R to include operations for matrices