the functions for creating cache matrix and inverse cache matrix