Initial commit of all source code.

This is the initial commit of all source code required to run the SfM
duplicate structure correction pipeline.