Algorithms examples in different languages