Fixed Median to not give warnings (changed an if to an else)
Added library files for system calls.
Readded the sort because it is needed for median and I had forgotten that.
Removed unused wc int.