Update cachematrix

Added some comments