Added choice to switch between merge and quick sort and also changed thread comparison class