tried out simple quick-sort algorithm.