Algorithms translated in java, c#, c, python, js, octave, scala