updated cachematrix.R, filling in the function definitions