Optimize Quick sort algorithm for better speed  1