Fixed a bug in the code (best_regularization did not return any value)