A comparison of various sorting algorithms, implemented in Java