Stochastic Levenberg-Marquardt for Solving Optimization Problems on Hardware Accelerators