cachematrix update

Completed functions for cachematrix