Added quick sort with recursive and iterative states