Algorithm to sort an array
adding quiucksort