created DaltonAlgorithm.java, added testing method