algorithm
algorithm, jalg4 for java version, calg4 for C version