Implementation of algorithms using java.