Codes for Landscape Reconstruction Algorithm