Code attempt for cacheMatrix

Added code into both the makeCacheMatrix and cacheSolve functions