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