Selection of sorting algorithms written in java