hercules: New C2D2 library

Change-Id: If50064be668bae497cf0a0f4bc469021c779f9c4