added lateral_dist.cxx