added LAMCH
now using LAMCH instead of numeric_limits<real_t> directly