Quick sort : implementation