Adapted Vector.R to cachematrix.R