finished and tested makeCacheMatrix function and subfunctions