Create algorithm.java