cachematrix.R contains the solution to programming assignment 2