Add interpolate to lm tools.
Fix interpolate bug.
Clean up interpolate code.