MinimumScalarProduct-large input/ouput