Move datastructure implementations to a separate directory