Translating algorithm names from Node to Java