Final Functions

changed the original cache mean operative to cache solve (matrix
inversion)