Implementation of different sorting algorithms with Java for training purposes