Add Swap function; Ignore .out in .gitignore