Some sorting methods implemented in Java for practice