Java implementation of known algorithms.