add common datastructure written in cpp