Quick Sort With PHP, tested with PHPUnitTest