Commit the completed cachematrix.R file

complete 2 functions and update comments