Final version - cachematrix.R - 17/9/2014 - 17.20