Implementations of most popular algorithms (Java)