First commit of working cachematrix.R for 2nd programming assignment