A Flexible Framework for Cubic Regularization Algorithms for Nonconvex Optimization in Function Space. (2nd January 2019)