Update cachematrix.R

changed setting function and and renamed all relevant functions