Update sort.cpp

array_input() now only affects one array.
set_array(int a[], int b[]) was added to set a to b.
These changes are reflected where these functions are called.
Comments updated.
Add .gitignore

Created with gitignore.io using "Windows", "C++", and "vim". Will likely
be updated as we progress.