Update to Quicksort function, moved Partition Subroutine to a separate function