Implement binary CV

The classical CV scheme assumes that after the optimization has been performed, the NN is retrained on the full training-validation half. We need a CV class to do this.