Added Functions to Cache Matrix