These are my algorithms implementations in Java...