Create sorting algorithms in java and compare their performances