Algorithm implementations in various languages