Update cache matrix functions & readme