Programming Assignment II cachematrix

This is the code for the Programming assignment 2.