revise sort_exercise and add comparator and comparable