Algorithms written in Java