quicksort implementation
refactor namespaces