Java - All Algorithms implemented in Java