File cachematrix.R for Programming Assignment2