Added solution to cachematrix.R