Implement the momentum optimizer update step function. Your function should take the current parameter value, gradient, and velocity as inputs, and return the updated parameter value and new velocity. The function should also handle scalar and array inputs.
Use the update
where is parameter, is velocity, is grad, is momentum and is learning_rate. Return (parameter, velocity), both rounded to 5 decimal places.