Fix reference warnings in Vol1 and Vol2

Fix undefined or multiply defined references in Vol1 and Vol2.
Also split the Dynamic Programming labs into their own folders.