Minimization over randomly selected lines