second update of CachyMatrix code