working on merge and quick sort