Updated the file with the 1st ver of the code to create matrix and cache inverse. Also inlude a test function()