re-organized a DS node implementations
ported Optimize nodes to DS