bubble and quick sorting