Defined functions makeCacheMatrix and cacheSolve

Used template from the makeCacheMean to form the new functions.