Algorithms and Data Structures Implementation (C++)