Modified cachematrix.R to add programming assignment #2 code.