Add D3D class

manage device & context.