Created first function getCacheMatrix that returns list with getter and setter functions, tested fine