Assignment2 Quick sort