Add makeCacheMatrix and cacheSolve function logic

Add logic and comments for the makeCacheMatrix and cacheSolve functions.