Java & C/C++ implementation of some common algorithms