Algorithms in several programming languages