updating code for DGtal 0.6

but will not be compatible with previous version...