Update SimpleAlgorithm.java