Initial version of 3d reconstruct