Implementation in Java of some popular algorithms