Programming Assignment 2, second version

this one was tested with sample matrices. The 'getting cached data'
message was uncommented.