cachematrix.R works now as expected.
removed log files