Added new logic to parse & construct update dicts based on different SGD algorithms specified by argument in pretraining & hybrid pretraning scripts.