test cg on smaller data sets, plot 3d graph of contact data