OOC-NND with Optimizer v3

Added a new cost-minimizing optimizer for NND.