Update chain_shape.cpp

fixed bad deallocator.
Merge pull request #13 from punkkeks/patch-3

Update chain_shape.cpp