completed cache matrix programming assignment