Fix a problem for quick sort partition
Fix a arrary boudry problem