corrected copy+paste errors *blush*
added templates and mergesort
changed code to generalize and addded sort.cpp