[olemis] Cached matrix implementation.

P.S. Interactive session recorded in cachematrix.log