add non recursive quick sort, and find Majority