Add partition and quick sort