added type-safe wrapper DiffMain around private diffMain - no more interface{} args. max int from math package.