Algorithms implemented in Java.