modified quick sort, added online judge problem (half-solved)