cacheSolve and makeCacheMatrix modified from skeleton code to full
function