Special template iterator
Decision function separation
Draft of gradient norms implementation
Delete some ugly crappy code. Test gradient norm.
Gradient calculation debugged