Common data structures implementations in C/C++/Java