Add .gitignore

Add rules: exclude temp files, ignore *.a *.o files, ignore build folder.