Changes to cachematrix

changes to cachematrix done