R programming week 3; assignment 2.

cachematrix.R contains code required for assignment
main.R contains code for demonstration / testing of cachematrix.R