function make cache matrix complete