common algorithms implemented in various languages