First draft of trust-region with dogleg