Add quick sort + corrections