Cache matrix completed and tested on 2x2 matrix