Fundamental algorithms in various languages