Write the Based Class for 3D Reconstruction.

All variable names are consistent with the original paper: "3D reconstruction from accidental motion"