quicksort! even though its a huge cliche. at least i got it on my own i guess