Simple java implementation of various sorting algorithms.