Added QS algorithm.