add c2d2 library