Comparison of Counting Sort and Insertion Sort implemented in java