cachematrix.R by HyoJung, Kim(starlightjun)