Fix a few bugs. Add parallel implementation to dyn_prog_test_algo.py