R Programming Programming Assignment 2 -- Caching of Matrix