Data Structures and related algorithms (C/C++ implementation)