mvregmed.grid.update function

Helper function to update parameters in a grid search