Contains algorithms for various sorts in Java