single file algorithm examples in various languages