Implemented makeCacheMatrix and cacheSolve functions for assignment