fix bug in qsort2
update .gitignore
split up into multiple files