optimize the code for the problem "Surrounded Regions".
add .gitignore for ignoring a.out.