new functions for creating variogram and fitting moldes