CodeDataStructure refactored with generic tests and Euclidian Algorithm

test.