fabs for L1 distance calculation