exercise002: quick sort algorithms