added quicksort and bfs