Added code

Added cache matrix codes