Some sorting algorithms implemented in Java