Added generic quicksort implementation and function for resolving dependencies in a function list for pipeline code.