Update cachematrix.R

Tested the final code with simple test cases - initialized list & then requested mean twice.
Results are as expected. First mean was calculated value. Second mean was not calculated, rather it was retrieved from cache.