completed cachematrix assignment