Algorithms implementations in different languages